ServiceNow Interview Question

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