incrementing or decrementing difference based on arr [ i ] being even or odd , check if arr [ i ] is odd
if ( arr [ i ] & 1 == 1 ) : NEW_LINE INDENT difference = difference + 1 NEW_LINE DEDENT else : NEW_LINE INDENT difference = difference - 1 NEW_LINE DEDENT