update and regroup Best_Time_to_Buy_and_Sell_Stock_II