Gameloft Interview Question

Try to solve a Palindrome case!