NTT DATA Interview Question

write a code for palindrome