using System;
using System.Collections.Generic;
//The user will input an integer array and the method
//should shift each element of input array to its Left by one position
//in circular fashion.
//The logic is to iterate loop from Length-1 to 0 and swap each element with last element.
//input: 1 2 3 4 5, output: 2 3 4 5 1
public class Program
{
public static void Main()
int[] myArray = {1,2,3,4,5};
var size = myArray.Length;
int temp;
// Left rotation
for(int i=size; i>0; i--)
temp = myArray[size-1]; // last element stored in temp
myArray[size-1] = myArray[i-1]; // store previous elemnt as last elemet
myArray[i-1] = temp; // put temp into previous element
// Console.WriteLine("Position - {0}, Value {1}", i, myArray[i]);
}
/*
var myList = new List<int>(myArray);
myList.Remove(myArray[0]);
myList.Add(myArray[0]);
myArray = myList.ToArray();
*/
for(int i=0; i<size; i++)
Console.WriteLine(myArray[i]);