Chevron Interview Question

Q: check if a string is a palindrome