Pergunta de entrevista da empresa Xilinx

FSM question and System Verilog code for it