Domanda di colloquio di Blend

I don't remember exactly but leetcode medium/hards