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).
You have been given an integer array/list(ARR) of size N. It has been sorted(in increasing order) and then rotated by some number 'K' in the right hand direction. Your task is to write a function that ...