Given a string s, return the longest palindromic substring. If multiple have the same maximum length, return the one that appears first (leftmost).
Input: A quoted string s.
Output: Quoted string — the longest palindromic substring.
Input: "babad"
Output: "bab"
Explanation: 'bab' is a valid longest palindrome (leftmost).Input: "cbbd"
Output: "bb"
Explanation: 'bb' length 2.Input: "a"
Output: "a"
Explanation: Single char.1<=s.length<=1000