A palindrome is a string that is the same spelled forward as it is spelled backward. So, "abcba" is a palindrome, as are "eye" and "madam".
PalFind program below so that it
reads in a string of characters, checks character-by-character
to see whether or not the string is a palindrome, and then prints
either "Yes" or "No".
In other words, if the input string is "abba" or "wallow", the output would be "Yes".
If the input string is "FBI" or "garbage", the output would be "No".
You may ignore punctuation, in that the test strings used for this program do not contain any. You may also modify the whole string to all uppercase or all lowercase before you begin the check.
Note: The strings may be of odd or even length, as in "cat", "dad", "racecar", or "Hannah".