NVIDIA interview question

Design a state machine for sequence detection.