Pregunta de entrevista de ADP

How would you find duplicates in an array?