Example 1

Example 2

The number of nodes in the tree is in the range [1, 210].-99 <= Node.val <= 99The depth of the tree will be in the range [1, 10].Example 1

Example 2

The number of nodes in the tree is in the range [1, 210].-99 <= Node.val <= 99The depth of the tree will be in the range [1, 10].