Pergunta de entrevista da empresa Wipro

write a program to print the reverse of a string and check whether its palindrome?