public static void Main()
var strReverse = str.ToLower().Reverse();
Console.WriteLine(str.ToLower().SequenceEqual(strReverse)? "Palindrome" : "Not Palindrome");
Console.WriteLine(IsPalindrome(str)? "Palindrome" : "Not Palindrome");
public static bool IsPalindrome(string word)
for(int i = 0; i < word.Length/2; i++)
if(char.ToLower(testWord[i]) != char.ToLower(testWord[testWord.Length - i - 1]))