Super Easy C++ One Liner Clean code
\nclass Solution {\npublic:\n    int concatenatedBinary(int n) {\n        long long int ans=0;\n        int i=1;\n        while(i<=n){\n            ans=((ans<<(
```\nclass Solution {\npublic:\n    int concatenatedBinary(int n) {\n        long long int ans=0;\n        int i=1;\n        while(i<=n){\n            ans=((ans<<(1+int(log2(i))))%1000000007+i)%1000000007;\n            i++;\n        }\n        return ans;\n    }\n};\n```
[]