Tesco Bengaluru interview question

Design problem