Walgreens interview question

everything was easy