easy solution but throwing tle (
Code
# Code
```python3 []
class Solution:
    def numDupDigitsAtMostN(self, n: int) -> int:
        c = 0
        for y in range(0, n+1):
            if len(set(str(y))) != len(str(y)):
                c += 1
        return c
```
['Python3']