Dynamic Programming on Subtrees (DP on Subtree) - Preparation to IOI Part 5