Question d’entretien chez Compass

Leetcode medium question on a binary tree