Question d’entretien chez Meta

Two leetcode question, lc238 and lc438. medium.