Burberry Interview Question

coding logic questions, average difficulty.