


2, 23, and 4343456 are Jumping numbers but 296 and 89498 are not.
The difference between ‘9’ and ‘0’ is not considered as 1. All single-digit numbers are considered as Jumping Numbers.
The first line contains an integer 'T' denoting the number of test cases.
The only line of each test case contains an integer N.
For each test case, print all the Jumping Numbers smaller than or equal to N in ascending order.
You do not need to print anything, it has already been taken care of. Just implement the given function.
1 <= T <= 100
1 <= N <= 10^8
Time Limit: 1 sec
This is the basic solution to this problem.
Finally, as the output needs to be in ascending order, we sort our array accordingly
For example, let’s take N = 20.