The force exerted on a charge q by an electric field is given by:

We know that the force is exerted to the right which means the force is positive and pointing in the direction of the unit vector i, then we have:

Therefore, the magnitude of the electric field is

and it points to the left.