NVIDIA Interview Question

Design an FSM to do module 3