Reverse Words in a String

Approach 3: split to string array, reverse the array, then join the
reversed string array.