ION Group Interview Question

2 balls and 50 floors puzzle