Each team will be seated in a different room and after which every one will be given a cap either red or blue, i.e., total of 16 caps out of which 8 are red and 8 are blue and one from each room has to shout one of these words: Yes/No/OK and only once. They have to shout loud enough so that all other teams of their group can hear.
Then, one from each group(all 4 together) has to go to another room where they should tell the number of red and blue caps each of the other teams wore.
Before the competition started, all 16 of them are asked to devise a strategy together for every team to accomplish the task successfully. They are also told that they should not take the caps off their heads and should not talk to members of other teams until the competition is over.
Can you find out the strategy they used? It is known that all the 3 words have been shouted at least once and one of the guys said,"In this case, anyone one of four of us could have told you the distribution of hats even if we came here individually"?
Assume all their voices are indistinguishable.