Create best time to buy and sell stock II

can't pass the large test cases, I think the method is too naive