Yara Interview Question

Check whether the string is palindrome or not