Question d’entretien chez Cognizant

asked to make palindrome code in java