Wipro interview question

They asked me to remove duplicates from an array.