
v_f=0

(1)
having into account that the total time spent in air till the cap came to her hands is Ttotal=2*t
where t is the time which the cap spent to reach the heighest point or the maximun height. so;
Ttotal=2second
t=1sec
we then replace t into the equation(1);
this is the initial velocity with which the cap was thrown