`A` and `D` collide elastically with `B` and `C`, respectively and come tor rest but `B` and `C` starts moving with velocity `u` towrds each other as shown
`B` and `C` collide elastically and exchange their velocities to move in the opposite directions.
Now `B` and `C` collide elastically with `A` and `D`, respectively and come to rest but `A` and `D` start moving with velocity `u` away from each other as shown.
Therefore final velocities `V_(A)=u(larr), V_(B)=0,V_(C)=0 and V_(D)=u(rarr)`