Union Training II - Dynamic Programming

B: Snowdrop޳