C3 AI interview question

How would you design a system to control an elevator?