Samsung Electronics interview question

Finite State Machines.