Domanda di colloquio di Lightspeed

Leetcode easy question for the first one and a systems design question