Maximize the Number of Target Nodes After Connecting Trees II | Leetcode 3373