Amazon Interview Question

Serialize and deserialize binary tree