Toast Inc interview question

Deciding if a string is palindrome