186. Reverse Words in a String II

Given an input string   , reverse the string word by word. 

Example:

Input:  

["t","h","e"," ","s","k","y"," ","i","s"," ","b","l","u","e"]
Output: 

["b","l","u","e"," ","i","s"," ","s","k","y"," ","t","h","e"]

Note: 

Follow up:  Could you do it in-place without allocating extra space

Difficulty:

Medium

Lock:

Prime

Company:

Amazon Facebook Microsoft Uber