Numerix interview question

Remove duplicates and print the array