Mass of the block, m = 1 kg
Spring constant, k = 100 N m–1
Displacement in the block, x = 10 cm = 0.1 m
The given situation can be shown as in the following figure
At equilibrium, the work done by the block is equal to the potential energy of the spring, i.e.,