Block A of mass M in the figure is released from rest when the extension in the spring is . The maximum downward displacement of the block is (assume )
Loss in gravitational potential energy of block is equal to gain in elastic potential energy of spring
On solving