

 Function ex_paper1

    line 5 / 10
    1 + max(i, 0) + max(0, (n - i))
    O(n^1)

Total Complexity: O(n^1)
