Virtusa Interview Question

WAP to extract distinct numbers from an array.