Let h= height of ceiling
⟹ Speed before the first impact =√2gh
⟹ Speed after the first impacts =e√2gh
The ball comes back for the second impact.
Before the second impact, speed =e√2gh
After the second impact, speed =e2√2gh
Height attained =u22g⟹h2=[e2√2gh]22g⟹h2=e4(2gh)2g
⟹e=14√2