Function foo line 28 max(B, 0) O(n) Total Bound: max(B, 0) Total Complexity: O(n)