Stores the sum of elements at odd and even indices
evensum = arr [ 0 ] NEW_LINE oddsum = 0 NEW_LINE for i in range ( 3 , N , 2 ) : NEW_LINE INDENT evensum += arr [ i ] NEW_LINE DEDENT for i in range ( 2 , N , 2 ) : NEW_LINE INDENT oddsum += arr [ i ] NEW_LINE DEDENT