Pregunta de entrevista de Amperity

The question is the classical elevator scheduling problem.