Brioschi interview question

How you would design an elevator algorithm?