Innostax interview question

Write the code to check palindrome