Sample code to get numbers from a list, with no duplicate