XP Health interview question

Serialize and deserialize a binary search tree