Wipro Interview Question

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