Pregunta de entrevista de LTM Limited

how can you remove duplicate elements from an array?