Thoughtwin Interview Question

1) write a program to remove duplicates from an unsorted array.