/*package whatever //do not write package name here */ import java.io.*; class GFG { // Fuction to rotate array static void Rotate(int arr[], int d, int n) { // Storing rotated version of array int temp[] = new int[n]; // Keepig track of the current index // of temp[] int k = 0; // Storing the n - d elements of // array arr[] to the front of temp[] for (int i = d; i