Solution for 11-product-and-sum