Domanda di colloquio di Epic

How would you implement an algorithm for elevator?