Frage im Vorstellungsgespräch bei TandemSeven

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