Count Numbers With Unique Digits Leetcode Javascript