WebDirekt Interview Question

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