hw0 max_2_sum use reduce