This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] Time to reach the plane $=\sqrt{\frac{2(H-h)}g}$. After the elastic impact the velocity is horizontal, so the fall from height $h$ takes $\sqrt{\frac{2h}g}$. Total $T=\sqrt{\frac2g}\left(\sqrt{H-h}+\sqrt h\right)$. For fixed $H$, this is maximum when $H-h=h$ (by the AM-GM/Cauchy bound), i.e. $\frac Hh=2$. Answer: 2.