Frage im Vorstellungsgespräch bei smartData Enterprises

Write a function to check if a string is a palindrome.