A body of mass m hangs by an inextensible string that passes over a smooth mass less pulley that is fitted with a light spring of stiffness k as shown in figure. If the body is released from rest and the spring is released, calculate the maximum elongation of the spring.
![](https://sahay.guru/wp-content/uploads/2020/08/q227-s-1-820x1024.jpg)