Problem Description
Given A and B you have to find all stepping numbers in the range A to B (both inclusive).
The stepping number:
A number is called as a stepping number if the adjacent digits have a difference of 1.
For e.g. 123 is a stepping number, but 358 is not a stepping number
First argument is an integer A.
Second argument is an integer B.
Return a integer array sorted in ascending order denoting the stepping numbers between A and B.
Input 1:
A = 10 B = 20
Output 1:
[10, 12]
Explanation 1:
The stepping numbers in range [10, 20] are 10, and 12.
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a question? Checkout Sample Codes for more details.