Meta interview question

Some leetcode questions, two binary tree problems