InMobi interview question

serialize and deserialize a binary search tree.