Pregunta de entrevista de Fidelity Investments

Write program to find duplicate words in string