Fidelity Investments interview question

Write program to find duplicate words in string