Subarray Program In Python For Palindrome String Problem