Amazon Interview Question

Write code to serialize and then deserialize a tree.