Cepheid interview question

State Machine diagrams and some logical normal problems.