Pergunta de entrevista da empresa Axon

Given a binary tree, how can we represent it as a string and then back to a binary tree. You were first asked to serialize the tree and then deserialize back into a binary tree rep.