Let T(n) be a function that represents the worst-case time complexity of the following algorithm. Write T(n) as a recurrence relation, and find a closed form solution of T(n). Write the smallest Big-O time complexity of T(n) in simplest form. Show all of your work.