store all subarray sum in vector
for i in range ( 1 , n + 1 , 1 ) : NEW_LINE INDENT for j in range ( i , n + 1 , 1 ) : NEW_LINE INDENT subArrSum . append ( cArray [ j ] - cArray [ i - 1 ] ) NEW_LINE DEDENT DEDENT