Microsoft Interview Question

How do you serialize a binary tree?