LeetCode
Binary Trees With Factors
Click
here
for an explanation.