

 Function foo

    line 7 / 11
    1 + max(0, (M - i)) + max(0, (N - j))
    O(n^1)

Total Complexity: O(n^1)
