Reverse String Java Using For Loop