Given a string, find the longest palindromic substring.
Return the substring itself. A palindrome reads identically from left to right and right to left. If multiple palindromic substrings have the same maximum length, return any one. The input is a non-empty string containing printable characters.
Function signature: def longest_palindrome(s):
def longest_palindrome(s):