Option (D) is correct.
Explanation: For an elastic head-on collision with the target at rest (m1=1 kg, m2=5 kg), taking the original direction as positive:
v1=m1+m2m1−m2u=−64u=−32u,v2=m1+m22m1u=+62u=+3u
Check momentum: 1(−2u/3)+5(u/3)=u. Check kinetic energy: 21(4u2/9)+21(5)(u2/9)=21u2.
The 5 kg ball reaches the wall and returns at u/3. Now both balls move backward: the 1 kg ball in front at 2u/3 and the 5 kg ball behind it at only u/3. The ball in front is faster, so the gap keeps growing and there is no second collision.
(A) is wrong: a ball stops after an elastic hit only when the target has equal mass; v1=0, v2=u/5 conserves momentum but keeps only 51 of the kinetic energy, so it is not elastic.
(B) is wrong: the velocities are right, but whether one ball catches another depends only on their speeds, not their masses; the returning 5 kg ball is the slower one.
(C) is wrong: it uses the speeds for a 1 kg ball hitting a 2 kg ball; with −u/3 and +2u/3 the momentum would be −u/3+10u/3=3u, not u.