UST Interview Question

find duplicates in a string