

 Function foo

    line 4 / 9
    1 +  max(y, 0) × max(0, (y + 1)) + max(0, (x + 1)) + max(0, (y + 1))
    O(n^2)

Total Complexity: O(n^2)
