Optimal solution and reseting Boxes 3