Question d’entretien chez Google

leetcode tree question, one question never seen before.