Union Training II - Dynamic Programming

I: Mingo's Game