Solution for Best Time to Buy and Sell Stock 1.
Solution for Best Time to Buy and Sell Stock 2.
Solution for Best Time to Buy and Sell Stock 3.