Pregunta de entrevista de Xilinx

FSM question and System Verilog code for it