Paycom interview question

Iterate through a string and find duplicates in the string