Toast Inc interview question

Check if the string is palindrome or not.