BuyHatke Interview Question

Elevator system design problem