Pergunta de entrevista da empresa LTM Limited

how can you remove duplicate elements from an array?