Dynamic Programming+Array--Best Time to Buy and Sell Stock III--O(n)+<=2 transactions+ maxProfitHistryArray