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