using System.Collections.Generic;
using System.Globalization;
public static void Main()
string[] array = { "civic", "aabb", "deified", "p2P", "microsoft", "deleveled", null,
"level", "madam", "raceCar", "Net", "repaper",
"A", "", "reviver", "rotator", "MadamImAdam", "*$$*",
"sagas", "xyz", "Palindrome", "tacoCat", "stats"
Console.WriteLine($"array 4={array[4]}");
foreach(string word in array)
bool isPalendrome = true;
for (int i = 0; i < word.Length / 2 + 1; i++)
string first = word[i].ToString();
string last = word[word.Length - 1 - i].ToString();
if(first.ToLower() != last.ToLower())