Question d’entretien chez Meta

a variation of simplify path from leet code