Find the longest palindromic substring within a given string.
Implement longest_palindrome(s) to return one longest palindromic substring. If multiple substrings have the same maximum length, return the one whose starting index is smallest. Return an empty string when s is empty.
s contains printable charactersdef longest_palindrome(s):