algo4: twopointers: Longest palindromic substring