Create E2-5.cpp

Exercise 2.5