Finding the longest palindrome in a string
Implement a function that finds the longest palindrome in a given string. For example, in the string "My dad is a racecar athlete", the longest palindrome is "a racecar a". Count whitespaces as valid characters. Other palindromes in the above...