give binary tree find minimum depththe minimum depth number nod short path root node near leaf nodenote a leaf node child Example 1input root 3920nullnull157output 2example 2input root 2null3null4null5null6output 5 ConstraintsThe number nod tree range 0 1051000 Nodeval 1000