You are given a string s.
Your task is to find the longest palindromic substring in s.
Note that:
s that reads the same forwards and backwards.Return the longest palindromic substring found in s.
"banana"
"anana"
In 'banana', 'anana' is the longest substring that reads the same forwards and backwards.
"afternoon"
"noon"
In 'afternoon', 'noon' is the longest palindromic substring and has an even number of letters.
"a"
"a"
The single character "a" is a palindrome.
"banana"
"anana"