GoDaddy Interview Question

find the duplicates in a string