Question d’entretien chez Block

Design an algorithm to control an elevator.