XIT Solutions interview question

Write a programming logic to check if a string is palindrome or not?