Given the root of a binary tree, return its maximum depth. A binary tree's maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
Recursive Depth-First Search
The maximum depth of a binary tree is 1 plus the maximum of the depths of its left and right subtrees. This can be solved with a simple recursive post-order traversal.