LeetCode
Lexicographical Numbers
Click
here
for an explanation.