CMR interview question

FSM for sequence detection