Qualcomm Interview Question

implement a sequence (10101 ) detector using fsm in verilog