You are given the root of a binary tree.
Your task is to return the maximum depth of the binary tree. The maximum depth is defined as the total number of nodes along the longest path from the root down to the farthest leaf node.
Remember that:
4
The longest path is 1 -> 2 -> 4 -> 8, which has 4 nodes.
2
The longest path is 1 -> 2, which has 2 nodes.
None
0
The tree is empty, so its depth is 0.
4