Create hw2q4.cpp