Finish reverseWordsinaString.cpp