Meta interview question

find duplicates in the string