Question d’entretien chez Chartboost

Write a function to serialize a binary tree into a string. Write another function to deserialize a string back into a binary tree.