Hats in a box problem

1 answer

More data is needed for us to provide help.