Problem
Given aroot of an N-ary tree, return a deep copy (clone) of the tree.
Each node in the n-ary tree contains a val (int) and a list (List[Node]) of its children.
Examples
Constraints
- The depth of the n-ary tree is less than or equal to 1000.
- The total number of nodes is between [0, 10^4].