public static void Main()
bool isPalindrome = value == value.Reverse();
Console.WriteLine($"Does {value} palindrome?");
Console.WriteLine(isPalindrome ? "YES" : "NO");
public static class Extensions
public static string Reverse(this string input)
char[] chars = input.ToCharArray();
return new String(chars);