Update Q2-4.CPP