📋Question
Given an integer n, return the count of numbers that have all unique digits.
Note: Where 1 <= x <= 10ⁿ.
Sample Input 1:
2
Sample Output 1:
90
Explanation:
Here, n=2, so the range will be between 1 to 100 (1 <= x <= 100).
The result should be the count of numbers in the given range that do not contain repeated digits(e.g., excluding 11, 22, 33, 44, 55, 66, 77, 88, 99, 100).
Sample Input 2:
3
Sample Output 2:
738