Texas Instruments Interview Question

draw pattern recognizer state machine