Find the best buy and sell time that make max benefit