Houzz Interview Question

How to serialize a binary tree and deserialize from the data you get?