IXL Learning interview question

Find duplicates in an array