Cisco Interview Question

How to write code to check a pallindrome.