

 Function foo

    line 5 / 12
    1 + max(0, (y + 1 + -x)) + max(0, (x - y))
    O(n^1)

Total Complexity: O(n^1)
