best time to buy and sell stock iii solution and notes added