Count of N-digit numbers with at least one digit repeating
Given a positive integer n, the task is to find the count of n-digit numbers with at least one repeated digit.Examples:Input: n = 2Output: 9Explanation: All the 2-digit numbers with at least one repeated digit are 11, 22, 33, 44, 55, 66, 77, 88, 99. Therefore, the total count is 9.Input: n = 5Output