Function foo line 48 max(C, 0) O(n) line 48 max(C, 0) + max(C, 0) O(n) Total Bound: max(C, 0) + max(C, 0) + max(C, 0) Total Complexity: O(n)