Numerix interview question

How to remove duplicates from an array.