Did u mean u'll give a sequence of number like 1,2,3,6,7,23, etc and the code need
to find the range of these numbers as 1 to 23 ,

or

U'll give a couple of number the code needs to print the numbers in between them ?

Please solve my confusion