Fidelity International interview question

DSA question - remove duplicates from an unsorted array