Amazon interview question

How would you begin to design software for an elevator system?