Pregunta de entrevista de Everforth Quinnox

How do you find duplicate elements in an array?