Capgemini interview question

Write code for the given string is palindrome or not