It is may be observed that at every level one class is added comprising of one or more products. If the last
product is assigned to some node (i.e., k = P), then tracing all previous nodes in the tree from this node until
root node 0ð0; 0Þ forms a complete solution.