Orange interview question

Chocolate wrapper problem