Pergunta de entrevista da empresa Apple

Write a program that determines if an input string has palindromes.