Question d’entretien chez Oracle

Write code to check whether a given string is palindrome or not