Simple Set bit check || Easy to understand
\nclass Solution {\npublic:\n    vector<int> evenOddBit(int n) \n    {\n        int even = 0, odd = 0;\n        for (int i = 0; i < 32; i++) //n is 1000 at max 
```\nclass Solution {\npublic:\n    vector<int> evenOddBit(int n) \n    {\n        int even = 0, odd = 0;\n        for (int i = 0; i < 32; i++) //n is 1000 at max => 32 bit integer\n        {\n            int bit = 0;\n            if ((1 << i) & n) bit = 1;\n            \n            if (i % 2 == 0 && bit == 1) even++;\n            else if (i % 2 != 0 && bit == 1) odd++;\n        }\n        return {even, odd};\n    }\n};\n```
['C', 'C++']