UKG Interview Question

Q: Check whether a string is a palindrome