Domanda di colloquio di Walgreens

Easy Leetcode problem , 1 Hard System Design Question.