Let the extension in the string be x.
Given:
Magnitude of the charges, q = 2.0 × 10−8 C
Separation between the charges, r = (0.1+ x) m
By Coulomb's Law, electrostatic force,
The spring force due to extension x,
For equilibrium,
Electrostatic force = Spring force
Yes, the assumpton is justified. As two similar charges are present at the ends of the spring so they exert repulsive force on each other.Due to the repulsive force between the charges,an extension x is produced in the spring. Springs are made up of elastic material.When a spring is extended then a restoring force acts on it which is always proportioanal to the extension produced and directed opposite to the direction of applied force.The restoring force depends on the elasticity of the material. When the extension is small then only the restoring force is proportinal to the extension.If the extension s camparable to the natural length of the spring then the restoring force will depend on higher powers of the extension produced.