1490. Clone N-Ary Tree

Problem

Create a deep copy of an N-ary tree.

Given the root of an N-ary tree, create a deep copy (clone) of the tree. Each node in an N-ary tree has a value and a list of children nodes.

The copy should have the same structure and all new nodes with the same values as the original tree.

Examples
Input: []
Output: []
Hints
Related Problems

1490. Clone N-Ary Tree

Create a deep copy of an N-ary tree.