Chubb Interview Question

How would you identify duplicates of an element in an array?