You have been given a random integer array/list(ARR) of size N. Write a function that rotates the given array/list by D elements(towards the left).
rotate 1 steps to the right: [7,1,2,3,4,5,6] rotate 2 steps to the right: [6,7,1,2,3,4,5] rotate 3 steps to the right: [5,6,7,1,2,3,4] ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results