Reverse Words in a String

Approach 2:
1. reverse the whole string
2. reverse every word in the reversed string