




Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Start traversing the tree and each node should return a vector to its parent node.
The vector should be of length 26 and have the count of all the labels in the sub-tree of this node.