Frage im Vorstellungsgespräch bei Microsoft

Create a function that returns the duplicates in an array