Shopify Interview Question

find weather a string is palindrome