Texas Instruments interview question

draw pattern recognizer state machine