Odd length sub - string
else : NEW_LINE INDENT count [ string [ end ] ] += 1 NEW_LINE length = maxPal ( string , count . copy ( ) , start , end + 1 ) NEW_LINE count [ string [ end ] ] -= 1 NEW_LINE count [ string [ start ] ] -= 1 NEW_LINE return max ( length , maxPal ( string , count , start + 1 , end ) ) NEW_LINE DEDENT