Update Best Time to Buy and Sell Stock II.cpp

Basic Idea: sell the stock before it fails, buy the stock before it raises.
isBuy flag records the last action to this stock.
buyPos records the position where we performed last buy action, this contains valid value only if isBuy == true.
Be aware of the clean up action, if the last action is "buy", we need to sell it at the last day