public static void Main()
Rotate obj = new Rotate();
int [] arr = new int[]{1,2,3,4,5};
int x = arr[arr.Length-1];
Console.WriteLine("Array after rotation is ");
Console.WriteLine(arr[0]);
for(j = arr.Length-i;j<arr.Length;j++)
Console.WriteLine(arr[j]);