my solution was absolutely correct(not just for weak cases)… what I did is… I counted frequency of all ingredients … then looped through all islands and if all the ingredients found on one island had frequency more than one then that island can be skipped and answer is some…
1
3 4
2 1 2
2 2 3
4 1 2 3 4
so answer to this test case will be some not all… https://www.codechef.com/viewsolution/13219918