Revinate interview question

serialize and desearlize a binary tree