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.
While this can be solved with DFS, the BFS approach counts the number of levels traversed, which directly gives us the depth.
root = [3,9,20,null,null,15,7]3root = [1,null,2]2The number of nodes in the tree is in the range [0, 10^4]-100 <= Node.val <= 100Click "Run" to execute your code against test cases
Socratic guidance - I'll ask questions, not give answers