Bloomberg Interview Question

remove duplicate elements in an unsorted array