ADP interview question

How would you find duplicates in an array?