Pergunta de entrevista da empresa Microsoft

How would you search m strings in a given text in an efficient manner?