A body of mass m hangs by as inextensible light string that passes over a smooth massless pulley that is fitted with a light spring of stiffness k as shown in the figure. If the body is released from rest, calculate the maximum elongation of the spring. Take g=10 m/s2.