SEAKR Engineering interview question

How would you design a state machine.