Waitrose interview question

Problem solving involving customers