An elastic cord of elastic constant k and length L is hung from point A having a massless block at the other end. A smooth ring of mass M falls from point A. What is the maximum elongation of cord?