Axiom Zen interview question

Build a basic state machine