Google Interview Question

Serialize and deserialize n-ary tree