Tesco interview question

Technical design question was quite challenging