Pergunta de entrevista da empresa Brioschi

How you would design an elevator algorithm?