you give root binary tree integer distance a pair different leaf node binary tree say good length short path equal distancereturn number good leaf node pair tree Example 1input root 123null4 distance 3output 1explanation the leaf node tree 3 4 length short path 3 this good pairexample 2input root 1234567 distance 3output 2explanation the good pair 45 67 short path 2 the pair 46 good length ther short path 4example 3input root 7146null53nullnullnullnullnull2 distance 3output 1explanation the good pair 25 ConstraintsThe number nod tree range 1 2101 Nodeval 1001 distance 10