Loblaw Digital interview question

Pretty easy assignment