You get the root of a binary tree. Return its depth: the number of nodes on the longest path that starts at the root and goes down, one child at a time, to a leaf (a node with no children). The root on its own counts as one, so a single node has depth 1 and the empty tree, given as null, has depth 0.
A tree is written in level order, top to bottom and left to right, with null for a missing child. The longest path can go through either side and may switch sides on the way down, the tree may lean entirely to one side, and node values (which can repeat or be negative) play no part in the answer.