Given a string s, return the longest palindromic substring in s.
Input: s = "babad"
Output: "bab"
Explanation: "aba" is also a valid answer.
Topics: two-pointers, dp
Asked by: Amazon, Meta, Microsoft
Time complexity: O(n^2). Space complexity: O(1).