House Robber III

You are given a binary tree where each node stores money in one house. The tree is provided as a level-order array, and null means that child is missing.

You cannot rob two houses that are directly connected by an edge (parent and child). If you rob one house, you must skip its immediate children.

Return the maximum total amount you can rob from the tree without breaking that rule.

Examples
Input: [3,2,3,null,3,null,1]
Output: 7
Hints

House Robber III

You are given a binary tree where each node stores money in one house. The tree is provided as a level-order array, and `null` means that child is missing.