Need to reverse an array of integers based on the input number For example :
Array be [1,2,3,4,5,6,7,8,9] and value of subset be N = 4
then the array after reversal will be [4, 3, 2, 1, 8, 7, 6, 5, 9].
if N = 3 then output should be [3,2,1,6,5,4,9,8,7]
Couldn't think of a proper logic with recursive method or with any looping concepts