Walgreens interview question

Easy Leetcode problem , 1 Hard System Design Question.