HP Inc. interview question

Implement the drawn state machine in verilog