NVIDIA Interview Question

FSM to detect sequence