Amazon Interview Question

Serialize a binary tree