Qualcomm Interview Question

design FSM given a sequence