Question d’entretien chez Brioschi

How you would design an elevator algorithm?