C++ Easy and Simple Bit Manipulation Solution
\nclass Solution {\npublic:\n    \n    int concatenatedBinary(int n) {\n        long long int result=1;\n        int total_bits=0;\n        for(int i=2;i<=n;i++
```\nclass Solution {\npublic:\n    \n    int concatenatedBinary(int n) {\n        long long int result=1;\n        int total_bits=0;\n        for(int i=2;i<=n;i++)\n        {\n            total_bits =  (int)log2(i)+1;\n            result= (result<< total_bits) +i;\n            if(result>INT_MAX)\n                result= result%1000000007;\n            \n        }\n        return result%1000000007;\n    }\n};\n```
['Bit Manipulation', 'C', 'C++']