• + 0 comments

    1first reverse the first half (n-roation) and then reverse next half(the size of rotion rt) - do it one by one ....and at last then reverse the whole arry..

    you just need to pass the indices in reverse function..the code is written