Create 9.cpp

Problem 9