Adding C++ solutions for Chapter 1, Question 1-5

C++ solutions for Chapter 1, Question 1 - 5