Added exercises/2.cpp