Pregunta de entrevista de Wipro

Q: How are duplicates removed from an array without using any library?