Determine the asymptotic time complexity for each of the following C++ functions.
Function 1.
Function 2.
Express the answer using "Big Oh" notation, as a function of n.