Inverse a sentence.
Anonimo
Reverse complete sentence as string reverse. Then reverse every word in it (using two variable i and j for index to hold one word, we can find word when we encounter space). Runtime O(n) + O(n) where n is length of string. no extra space required, everything is happening in-place