Frage im Vorstellungsgespräch bei Chartboost

Write a function to detect whether a string is a palindrome.