Adding solution of best time to buy and sell stock