Fidelity Investments Interview Question

Write program to find duplicate words in string