UKG Interview Question

check for a palindrome