Paycom Interview Question

Iterate through a string and find duplicates in the string