Update Minimum depth of binary tree