Bayer interview question

String Reverse (using Java)