Qualcomm interview question

design FSM given a sequence