String Reverse Answer in Java