Let N be the number of bounces.
Then N is such that and , where denotes the speed at which the ball travelled before the i-th bounce.
(In particular, are iid and following a uniform distribution over (0,1))
Does it help ? I must say I don't have much time, and haven't finished the problem yet, so I hope you can do some things with that.