LTM Limited interview question

how can you remove duplicate elements from an array?