How to solve LeetCode problem 357: Counting numbers with unique digits?