SpaceX Interview Question

Design a state machine for an elevator with buttons 1, 2, 3, 4, up, down