An array A consisting of N integers is given. Rotation of the array means that each element is shifted right by one index, and the last element of the array is moved to the first place. For example, ...
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). The first line ...