Numerix Interview Question

Remove duplicates and print the array