chapter 6 exercise 6-9: use accumulate to concatenate vector<string>