(c) Initially potential energy $= \frac{1}{2}kx^{2}$
$\Rightarrow \ \ U = \frac{1}{2}kx^{2}$
or $2U = kx^{2} \Rightarrow k = \frac{2U}{x^{2}}$
When it is stretched to $nx$ cm, then
$PE\ = \ \frac{1}{2}kx_{1}^{2} = \frac{1}{2} \times \frac{2U}{x^{2}} \times n^{2}x^{2} = n^{2}U$
$\therefore$ Potential energy stored in the spring $= n^{2}U$