HP Inc. Interview Question

Implement the drawn state machine in verilog