Hard
Given an integer n, return the count of positive integers in the range [1, n] that have at least one repeated digit.
n
[1, n]
Input: n = 20 Output: 1 Explanation: Only 11 has a repeated digit.
Input: n = 100 Output: 10
Input: n = 1000 Output: 262