Update arr [ i ] such that arr [ i ] contains the sum of the subarray arr [ 0. . . i ] from the original array
for i in range ( 1 , size ) : NEW_LINE INDENT arr [ i ] += arr [ i - 1 ] ; NEW_LINE DEDENT