solution: best time to buy and sell stock II 1