Question d’entretien chez Thomson Reuters

Write a method to reverse a string in Java.