Subtracting (I)-(II) yields
So we turn to dynamic Programming,
How many sub-solutions do we have?
we need
space