Birlasoft Interview Question

Write a code for palindrome