Best time to buy and sell stock 2 problem