modified best time to buy and sell stock I