Confluent Interview Question

How would you serialise a binary tree?