Pergunta de entrevista da empresa Google

Count matching words using the most efficient algorithm