in reply to Re: Finding longest palindrome from a string
in thread Finding longest palindrome from a string

Your code doesn't work with 'ababbab'