Question d’entretien chez Swiggy

Leetcode medium but could answer that