NTT DATA interview question

write a code for palindrome