TIAA interview question

Check if the string is palindrome or not