Question d’entretien chez Splunk

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