Qualcomm interview question

State machine, gate level design