Basic Time Complexity - Introduction to Programming - C++