Question d’entretien chez Yahoo

Design an algorithm to serialize and deserialize a binary tree.