Qualcomm interview question

Design sequence detector with logic circuit diagram