Splunk Interview Question

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