Pregunta de entrevista de WebDirekt

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