Qualcomm interview question

implement a sequence (10101 ) detector using fsm in verilog