Splunk interview question

Create a program to detect if a string is a palindrome.