QS:A particle P of mass m is connected to a fixed point O by a light inextensible string OP of length r, and is moving in a vertical circle, centre O. At its lowest point, P has speed U. When the string makes an angle α with the downward vertical it encounters a small fixed peg Q, where OQ=1 2 r. The string proceeds to wrap itself around the peg, so that P begins to move in a vertical circle with centre Q (see diagram). Given that the particle describes a complete circle about Q, show that U^2≥gr(7/2−cosα) .
My Thoughts: I used the energy conservation to find the inequality for U^2 taking into consideration that the final velocity is zero at the highest point. How to find the vertical distance between the lowest and highest point?? I found the distance between lowest point and pint string just before touching the peg using trigonometry easily. PLEASE HELP!!

Along the circular path in the small circle we should have
$$ T = m g\cos\beta + m \frac{2 v_{\beta}^2}{r} > 0 \Rightarrow v_{\beta}^2 > -\frac{r g}{2}\cos\beta\Rightarrow v_{\pi}^2 \gt \frac{rg}{2} $$
when $\beta = \pi$ (vertical). At this point we have
$$ h_{\pi} = \frac{r}{2}(3-\cos\alpha) $$
and
$$ \frac{1}{2}mU^2 = \frac{1}{2}m v_{\pi}^2+m h_{\pi}g $$
or
$$ v_{\pi}^2 = U^2-2gh_{\pi} \gt \frac{rg}{2} $$
hence
$$ U^2 \gt r g \left(\frac{7}{2}-\cos\alpha\right) $$