Answer:
K'=4K
Step-by-step explanation:
The electric potential energy is given by :

Where
k is spring constant
x is compression or extension in the spring
If the displacement of a horizontal mass-spring system is doubled, x'= 2x
New elastic potential energy :

So, new elastic potential energy 4 times the initial elastic potential energy.