Toast Inc Interview Question

Check if the string is palindrome or not.