using System;
public class Program
{
public static void Main()
// Step1: Create a Temp variable to store the value at index 0.
// Step2: Sift all the elements of array to left side by position 1 i.e. arr[i] = arr[i+1];
// Step3: Store the value of temp at the last index of array i.e. arr[(arr.Length – 1)] = x;
int[] arr = new int[] { 1, 2, 3, 4, 5 };
//step 1
int x = arr[0];
// step 2
for (int i = 0; i < (arr.Length - 1); i++)
arr[i] = arr[i + 1];
}
// step 3
arr[(arr.Length - 1)] = x;
// print
for (int i = 0; i < arr.Length; i++)
Console.Write(arr[i] + " ");