Artivive interview question

Find the duplicates in a string