Safeway Canada interview question

Not difficult