Pergunta de entrevista da empresa Amazon

write a function that validates whether a string is a palindrome