Pinterest Interview Question

Coding problem - design an elevator system that minimized response time to the customer (whichever floor they pressed the button on)