Publicis Sapient interview question

check whether the string is palindrome.