Pregunta de entrevista de Walgreens

Easy Leetcode problem , 1 Hard System Design Question.