Create E2-2.cpp

Exercise 2.2