Domanda di colloquio di Copperpod Digital

Java coding question on reverse a string.