Nokia Interview Question

check palindrome, longest palindromic substring