Microsoft interview question

Find duplicates in a list