Q-Centrix interview question

How do you write a function that removes duplicated elements in an array?