Domanda di colloquio di ServiceNow

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