Pergunta de entrevista da empresa Texas Instruments

Implement a sequence finder that finds the overlapping sequences of 1011 in a data stream using a state machine (draw the state diagram).