Astrotalk interview question

Remove duplicate numbers in an array.