Tech Mahindra interview question

write a palindrome code in any language