Tech Mahindra interview question

Write palindrome code using any language u know