LeetCode
Count Numbers with Unique Digits
Click
here
for an explanation.