modify Reverse-words-in-a-string.cc