LTM Limited Interview Question

how can you remove duplicate elements from an array?