(a) y-axis
(b) z-axis
Any magnetic field, except one parallel to the direction of velocity can change the direction of the particle. Therefore, either the magnetic field along y-axis or along z-axis can reverse the direction of the particle, as the velocity is along the x direction