Question d’entretien chez ByteDance

coding assignment for postorder of a tree