Pergunta de entrevista da empresa Confluent

How would you serialise a binary tree?