Question d’entretien chez Meta

Tech screen: 1) array of integers problem, 2) tree problem