Parallel Binary Tree Leetcode Question