Question d’entretien chez Microsoft

Give an algorithm to serialize and deserialize a binary tree.