Sum of Nodes with Even-Valued Grandparent (Medium)
Given the root of a binary tree, return the sum of values of nodes with an even-valued grandparent. If there are no nodes with an even-valued grandparent, return 0.
A grandparent of a node is the parent of its parent if it exists.
Example 1:
Input: ...
lietcode.hashnode.dev3 min read