Two same masses are tied with equal length of strings and are suspended at the same point. One mass is suspended freely whereas another is kept in a way that string is horizontal as shown. This is given initial velocity u in vertical downward direction. It strikes the freely suspended mass elastically that is just able to complete the circular motion after the collision about point of suspension O. Magnitude of velocity u is :

Know your College Admission Chances Based on your Rank/Percentile, Category and Home State.
Get your JEE Main Personalised Report with Top Predicted Colleges in JoSA

⟹ u2 = v2 –2gℓ = 3gℓ