Pergunta de entrevista da empresa Siemens Digital Industries Software

Write a function that checks if a string is a palindrome