Pergunta de entrevista da empresa Qualcomm

Pattern matching in a stream of bits and substitution with another pattern