Meta Interview Question

find duplicates in the string