The total mechanical energy of the block-spring system is given by the sum of the potential energy and the kinetic energy of the block:

where
k is the spring constant
x is the elongation/compression of the spring
m is the mass of the block
v is the speed of the block
At the point of maximum displacement of the spring, the velocity of the block is zero: v=0, so the kinetic energy is zero and the mechanical energy is just potential energy of the spring:

(1)
where we used x=A, the amplitude (which is the maximum displacement of the spring).
Since we know
A = 11.0 cm= 0.11 m
E = 1.10 J
We can re-arrange (1) to find the spring constant:
