Question d’entretien chez TandemSeven

Write a function that returns the first duplicate value of an array.