Pergunta de entrevista da empresa ServiceNow

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