Question d’entretien chez Oracle Finance

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