Question d’entretien chez Google

Leetcode Medium - Hard question with multiple followups