Pergunta de entrevista da empresa Cognizant

asked to make palindrome code in java