System1 interview question

Create a binary tree, and create a function to find the depth of the tree.