Citi interview question

Find duplicates in a string.