iCIMS interview question

Find duplicates in an array