Stetig Consulting interview question

A code to check whether a string is palindrome or not