Numbers With Same Consecutive Differences

Return all numbers of length n such that the absolute difference between any two consecutive digits is k.

Examples
Input: [3,7]
Output: [181,292,707,818,929]
Hints

Numbers With Same Consecutive Differences

Return all numbers of length n such that the absolute difference between any two consecutive digits is k.