0 MS EFFICIENT 0(32) C++
```\nclass Solution {\npublic:\n    int ans = 0 ; \n    int minFlips(int a, int b, int c) {\n        \n        for(int i = 0 ; i <= 31; i++)\n        {\n       
```\nclass Solution {\npublic:\n    int ans = 0 ; \n    int minFlips(int a, int b, int c) {\n        \n        for(int i = 0 ; i <= 31; i++)\n        {\n            long long int mask = (1 << i) ; \n            \n            int a_bit = (a & mask)?1:0;\n            int b_bit = (b & mask)?1:0;\n            int c_bit = (c & mask)?1:0;\n          //  cout<<a_bit<<" "<<b_bit<<" "<<c_bit<<endl;\n            if((a_bit | b_bit) == c_bit)ans+=0;\n            if((a_bit | b_bit) != c_bit)\n            {\n                if((a_bit == c_bit) || (b_bit == c_bit)){\n                    ans++ ; continue;}\n                if(a_bit == 1 &&  b_bit == 1 && c_bit == 0 )\n                {ans+=2 ; continue;}\n                else{ \n                   // cout<<i<<" ";\n                    ans++;\n                }\n            }\n        }\n        return ans;\n    }\n};
[]