Prosigns Interview Question

Write an algorithm to serialize and deserialize a binary tree.