Pregunta de entrevista de Wipro

They asked me to remove duplicates from an array.