Meta interview question

Serialize and deserialize BST.