Count the number of array elements strictly greater than all previous and immediately next elements
if ( arr [ i ] > arr [ i + 1 ] ) : NEW_LINE INDENT count += 1 NEW_LINE DEDENT if ( arr [ N - 1 ] > cur_max ) : NEW_LINE count += 1 NEW_LINE