If index is odd
if ( i & 1 ) : NEW_LINE INDENT sumOdd += arr [ i ] NEW_LINE DEDENT else : NEW_LINE INDENT sumEven += arr [ i ] NEW_LINE DEDENT if ( sumEven == sumOdd ) : NEW_LINE return True NEW_LINE else : NEW_LINE return False NEW_LINE