Amazon interview question

Serialization/Deserialization of a binary tree