Function foo line 24 max(0, (-1 - D)) O(n) Total Bound: max(0, (-1 - D)) Total Complexity: O(n)