Question d’entretien chez Microsoft

Convert a (binary) tree to a flat list.