IBM Interview Question

Write a function the reverse a string in Java?