Pregunta de entrevista de Oracle Finance

Write a code to reverse a string and check whether it is palindrome or not