Virtusa interview question

WAP to extract distinct numbers from an array.