Capgemini Interview Question

Write code for the given string is palindrome or not