Microsoft Interview Question

deserialize a tree to a string and build it back up.