Copperpod Digital interview question

Java coding question on reverse a string.