Pergunta de entrevista da empresa Wipro

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