Union Training II - Dynamic Programming

D: