Not quite, notice that the mass is in grams and not in kilograms

But it's okay, now to get the factor, you are being asked how many times the electrostatic force is larger/smaller than the weight (or did the question mean the gravitational force and you understand it another way?).

So, bring down the weight to 1. That is, by how much do you have to divide the weight for it to become equal to 1? When you have got that value, divide the electrostatic force by that same value, and that will be your answer.

E.g.

Weight = 5 N

E. Force = 20 N

Value to divide weight to get 1 is 5 (5/5 = 1)

Thus, factor = (20/5 =) 4. So, the factor the electric force is 4 times larger than its weight.

But I will say it again, are you sure it meant weight, or did it mean the gravitational attraction between the two spheres?