Solve http://oj.leetcode.com/problems/reverse-words-in-a-string/