I have a algorithm, the pseudo code below:
def foo(n):
    if n == 0
    return;
    // Loop below take O(N)
    for(i=0; i<n:i++){
   .... 
    }
    foo(n-1):
The idea is that each recursion takes n time, and there are n recursions.
The total time should be like 1 + 2 3 + 4 +5 + ... +n
Can it be proved as O(n*n)?
 
     
    