SerialTek interview question

Write the VHDL or Verilog code for a given state machine diagram.