Pregunta de entrevista de Emerge Technology

How to ignore the repeated elements from an array?