Reverse String In Java Using Functional Communication