Create E2-3.cpp

Exercise 2.3