Subtree Removal Game

Alice and Bob take turns removing subtrees from a tree, scoring the bitwise AND of the removed subtree's values. Alice wins if her total XOR exceeds Bob's. Both play optimally — determine if Alice has a winning strategy.

Examples
Input: [4,[[0,1],[0,2],[2,3]],[5,3,7,1]]
Output: true
Hints

Subtree Removal Game

Alice and Bob take turns removing subtrees from a tree, scoring the bitwise AND of the removed subtree's values. Alice wins if her total XOR exceeds Bob's. Both play optimally — determine if Alice has a winning strategy.