Artivive Interview Question

Find the duplicates in a string