Amazon Interview Question

How would you serialize/deserialize a binary tree?