Domanda di colloquio di Salesforce

How would you write a program for an elevator?