PerfectVIPs interview question

sequence detector FSM, write its verilog code