Domanda di colloquio di Brioschi

How you would design an elevator algorithm?