https://www.ernbook.com/algorithm-reverse-words-in-a-string/