AutoZone interview question

check if string is palindrome