Question d’entretien chez ServiceNow

In Java, reverse a string without using any helper functions.