Burberry interview question

coding logic questions, average difficulty.