Pregunta de entrevista de Copperpod Digital

Java coding question on reverse a string.