Pantelwar interview question

Find out and remove duplicate numbers from an array.