Question d’entretien chez Microsoft

Create a function that returns the duplicates in an array