Jet Interview Question

write code to check if it is a palindrome