Brioschi Interview Question

How you would design an elevator algorithm?