18F interview question

How would you design software to run an elevator