Pergunta de entrevista da empresa Cognizant

Was asked to write a java code to check Palindrome