Wipro Interview Question

They asked me to remove duplicates from an array.