In this approach we are reversing k numbers of elements first, then moving to remaining elements.
for this we are making two pointers (start, end), which holds indexes of arr, which we want to swap with each other.
We are running two loops, running first loop for total no of sub arrays times and second which is inside of first loop that's for k no of times
resolve #16
In this approach we are reversing k numbers of elements first, then moving to remaining elements. for this we are making two pointers (start, end), which holds indexes of arr, which we want to swap with each other. We are running two loops, running first loop for total no of sub arrays times and second which is inside of first loop that's for k no of times