A small ball is projected from point P towards a vertical wall as shown in Fig. It hits the wall when its velocity is horizontal. Ball reaches point P after one bounce on the floor. The coefficient of restitution assuming it to be same for two collisions is n/2. All surfaces are smooth. Find the value of n.