Innostax Interview Question

Write the code to check palindrome