[Coding study (leetcode)] Tree problems. 105, 106