Mindojo Interview Question

Write a simple elevator algorithm.