If str [ i ... j ] is a palindrome then update the length of the maximum palindrome so far
if ( isPalindrome ( str , i , j ) ) { maxLen = max ( maxLen , j - i + 1 ) ; break ; } } } } } return maxLen ; }