Frage im Vorstellungsgespräch bei Amazon

write a function that validates whether a string is a palindrome