Amadeus interview question

Write a program to remove duplicate elements from an array.