Chevron Interview Question

How to code a Palindrome