Continental Interview Question

A state machine for real-time example?