IBM interview question

Write a function the reverse a string in Java?