Publicis Sapient interview question

Check palindrome.