Groupon Interview Question

Using a language of your choice, create a function that can detect if a string is a palindrome or not.