added problem and test to reverse words in a string