added longest palindrome solution (not optimal one)