IBM interview question

They asked to solve a palindrome problem