public static void Main()
int[] arr = { 3, 4,2,1,6 };
Console.WriteLine("Memebers of a before mutation are:");
for (int i = 0; i < s; i++)
Console.Write(arr[i]+", ");
var result = solution(s, arr);
Console.WriteLine("\nMemebers of b after mutation are:");
for (int i = 0; i < s; i++)
Console.Write(result[i] + ", ");
static int[] solution(int s, int[] arr)
int[] result = new int[arr.Length];
for (int i = 0; i < s; i++)
int[] temp = new int[arr.Length-1];
for (int j = 0; j < s; j++)
for(int m=0; m < temp.Length; m++)