Question d’entretien chez Amazon

Write code to serialize and then deserialize a tree.