Grapecity Interview Question

write a program for eliminating the duplicates values from a given array.