SIMPLE || EASY TO UNDERSTAND || C++
\nclass Solution {\npublic:\n    vector<int> evenOddBit(int n) {\n        for(int i = 0; i < 1000; i++){};\n        vector<int> v;\n        while(n){\n         
```\nclass Solution {\npublic:\n    vector<int> evenOddBit(int n) {\n        for(int i = 0; i < 1000; i++){};\n        vector<int> v;\n        while(n){\n            v.push_back(n%2);\n            n >>= 1;\n        }\n        // reverse(v.begin(),v.end());\n        // for(auto &i: v)cout<<i<<" ";\n        // cout<<endl;\n        int x = 0, y = 0;\n        for(int i = 0; i < v.size(); i++){\n            if(i&1){\n                x += (v[i]);\n            }else{\n                y += (v[i]);\n            }\n        }\n        return {y,x};\n    }\n};\n```
['Bit Manipulation', 'C', 'C++']