Question d’entretien chez TikTok

given a tree possibly order