a palindrome is a string that reads the same forwards or backwards; for example dad, mom, deed (i.e., reversing a palindrome produces the same string). write a recursive, boolean-valued method, ispalindrome that accepts a string and returns whether the string is a palindrome. a string, s, is a palindrome if: s is the empty string or s consists of a single letter (which reads the same back or forward), or the first and last characters of s are the same, and the rest of the string (i.e., the second through next-to-last characters) form a palindrome. s is the empty string or s consists of a single letter (which reads the same back or forward), or
the first and last characters of s are the same, and the rest of the string (i.e., the second through next-to-last characters) form a palindrome.
Write a test program that reads a string from the standard input device and outputs whether the input string is a palindrome or not.