IntriCon interview question

How would you write a state machine?