Dessert Wizard -Editorial

Can someone elaborately explain the concept used in the editorial of this question?