Question d’entretien chez Chevron

Write code to find duplicates in an array.