Easy to understand || C++
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    vector<int> evenOddBit(int n) {\n        int even = 0;\n        int odd = 0, i = 0;\n        while(n > 0) {\n            int t = n % 2;\n            n /= 2;\n            if(t%2==1) {\n                if(i%2==1) {\n                    odd++;\n                    }\n                else {\n                    even++;\n                    }\n            }\n            i++;\n        }\n        \n        return {even, odd};  \n    }\n};\n```
['C++']