✅✅C++ Easy Solution  ✅✅
class Solution {\n   public:\n    vector evenOddBit(int n) {\n\n        int even = 0 , odd = 0 , count = 1;\n\n        while(n){\n            int bit = n & 1;\n
class Solution {\n   public:\n    vector<int> evenOddBit(int n) {\n\n        int even = 0 , odd = 0 , count = 1;\n\n        while(n){\n            int bit = n & 1;\n            n = n>>1;\n            count++;\n            if(bit==1){\n                if(count%2==0)\n                    even++;\n                else\n                    odd++;\n            }\n        }\n        return {even,odd};\n    }\n};
[]