NVIDIA Interview Question

Design a state machine for sequence detection.