Three balls A, B and C whose masses are m, km and 4m respectively are kept at rest on the horizontal smooth surface as shown in the figure. The ball A is given a velocity
vo rightward and it collides with the ball B elastically. Then ball B collides elastically third ball C. For what value of k, does the third ball C gain the maximum speed?