Solved Reverse Words In A String problem without using split