TIAA Interview Question

Check if the string is palindrome or not