Amazon interview question

Find Duplicates in a String.