Explanation:
The magnetic force acting on a charged particle is :
[tex]F=q(v\times B)[/tex]
Here q = +q (for proton)
v is in +x direction
B is in +y direction.
So,
[tex]F=q(vi\times Bj)\\\\F=qvB\hat{k}[/tex]
It is clear that the magnetic force is acting +z direction. So, to balance the magnetic force with an electric force so that the proton will continue along a straight line, the electric force must act in -z direction.