Number of numbers with the same rightmost digit in the each lottery number,Remove duplicate numbers.
For example, 5, 9, 15, 23, 29, the same numbers in the rightmost digits are: 5, 15, 9, 29.After removing the repeated numbers, there are still two numbers: 5 and 9