Loblaw Companies interview question

Coding problem not specific with a language. Race condition? Design problem