Infosys Interview Question

write a code for palindrome