Given a binary tree root, a node X in the tree is named good if in the path from root to X there are no nodes with a value greater than X.
Return the number of good nodes in the binary tree.
[1, 10^5][-10^4, 10^4]root = [3,1,4,3,null,1,5]4root = [3,3,null,4,2]3root = [1]1