What’s the observation behind this problem. Editorial is missing
https://discuss.codechef.com/problems/FLIPCOMP