Count Numbers With Unique Digits Leetcode Python