Best time to buy and sell III solved