bool checkPalindrome(string inputString) { char[] arr = inputString.ToCharArray(); Array.Reverse(arr); return string.Equals(new string(arr), inputString); }