I have a program that give two integer numbers: n , k n is the number to create a list with range(1,n+1) and k is max difference between two number in a row
for examp