NumPy allowed · plain Python earns 10 bonus points
Implement Maximum Depth of Binary Tree -- the simplest possible tree recursion, and the one every other "compute something about every subtree" tree problem is a variation of.
Implement max_depth(root): an empty tree has depth 0; otherwise the depth is 1 plus the larger of the left and right subtrees' depths.
max_depth(root: dict | None) -> int