UKG interview question

Q: Check whether a string is a palindrome