Continental interview question

A state machine for real-time example?