Lexicographical Numbers

Given an integer n, return all numbers from 1 to n in lexicographical order.

Lexicographical (dictionary) order compares numbers as strings: 1, 10, 11, 12, 2, ... because the character '1' is compared before '2'.

Examples
Input: []
Output: 0
Hints

Lexicographical Numbers

Given an integer `n`, return all numbers from `1` to `n` in lexicographical order.