Reverse String In Java Using Function In C