Amazon Interview Question

The question asked was a Leetcode deserialize serialize the tree.