Splunk Interview Question

Serialize and deserialize general binary tree