LeetCode
Encode N-ary Tree to Binary Tree
Click
here
for an explanation.