Honeywell Interview Question

write a program to simulate an elevator