Frage im Vorstellungsgespräch bei Prowareness

Asked to write the code duplicate elements in an array