Pergunta de entrevista da empresa Anthology

Write a program to reverse string and check is it palindrome or not?