Longest Palindromic Substring - Python - Leetcode 5