

 Function wise

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

Total Complexity: O(n^1)
