Count Value Occurrences in a Binary Tree
You are given the root of a binary tree (not a BST, just a generic binary tree) and a target value x. Count how many nodes in the tree have node.val == x.
Check more interview questions and experiences about Apple
