1448. Leetcode Count Good Nodes in Binary Tree || Intuition + Explanation + Code

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. Link to challenge : https://leetcode.com/explore/challeng...