Question d’entretien chez Meta

a leetcode question about binary tree.