Bouncy ball problem

Question

Hints

Answer