Five balls are placed one after the other along a straight line as shown in the figure. Initially