Pergunta de entrevista da empresa Microsoft

Write a program to return true if the string is a palindrome