Pregunta de entrevista de TandemSeven

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