Question d’entretien chez IXL Learning

Leetcode question, not too hard