Confluent interview question

How would you serialise a binary tree?