Thoughtwin interview question

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