Frage im Vorstellungsgespräch bei WebDirekt

Programming question:- There is an array given to you. Write code to print duplicate numbers.