Pergunta de entrevista da empresa Oracle

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