Update Q_1_7.cpp