easy c++ solution
Code\n\nclass Solution {\npublic:\n    int count_bits(int n) {\n        int cnt = 0;\n        while(n) {\n            n &= (n - 1);\n            cnt++;\n       
# Code\n```\nclass Solution {\npublic:\n    int count_bits(int n) {\n        int cnt = 0;\n        while(n) {\n            n &= (n - 1);\n            cnt++;\n        }\n        return cnt;\n    }\n    vector<int> evenOddBit(int n) {\n        int odd = count_bits(n & 0b0101010101);\n        int even = count_bits(n & 0b1010101010);\n        return {odd, even};\n    }\n};\n```
['Bit Manipulation', 'C++']