Pergunta de entrevista da empresa Microsoft

pattern detector - detect a pattern in an incoming stream