using System;
public class Program
{
public static void Main()
int [] arr=new int[5] {1,2,2,2,1};
bool polindrom=true;
for(int x=0;x<arr.Length/2;x++)
if(arr[x]!=arr[arr.Length-x-1])
polindrom=false;
}
if(polindrom)
Console.WriteLine("arry is polindrom");
else
Console.WriteLine("arry is not polindrom");