Question d’entretien chez TCS

Can you please write the palindrome code in java