The problem states that the maximum number of transactions are two: We are given a list of integers representing stock prices; we must find the maximum profit that can be made assuming at most two no overlapping BUY – SELL transactions.
There is a small typo which I think caused me some trouble parsing the sentence. In hindsight however the problem definition seems clear.