Qualcomm interview question

Basic digital circuits , sequence detector