recursive way to get min Depth of tree