Pergunta de entrevista da empresa ServiceNow

In Java, determine if a String is a palindrome. Constraint: The function must be solved recursively.