Toast Inc Interview Question

Deciding if a string is palindrome