LeetCode
Serialize and Deserialize N-ary Tree
Click
here
for an explanation.