DSA Key Problems

Count Good Nodes in Binary Tree

Given the root of a binary tree, count nodes whose value is at least every value on the path from the root to that node.