Amperity interview question

The question is the classical elevator scheduling problem.