cppstudy: add exercise of chapter 4 primer