Accenture Interview Question

Write a code for string is palindrome or not.