ByteDance interview question

Medium LeetCode questions: Deep Copy a tree