Pergunta de entrevista da empresa Google

Finding similar strings and identify which groups have more than 1 members.