Update reverseWords.cpp