MobiTV interview question

Write Java function to reverse a string