Pergunta de entrevista da empresa Google

My question was about tree in C++: Given a tree(single linked), in which each node had an integer value and multiple descendants, I was asked to calculate the number of the nodes whose value was as same as all of its descendants.

Pergunta de entrevista da empresa Google: My question was about tree in C++: Given a tree(single linked), in which each node had an integer value and multiple descendants, I was asked to calculate the number of the nodes whose value was as same as all of its descendants. | Glassdoor