Yahoo Interview Question

How do you serialize and de-serialize a binary tree?