JAVA|| Single Line Solution|| 90% Faster Code || Beginner Friendly
\tPLEASE UPVOTE IF YOU LIKE.\n\nclass Solution {\n    public int concatenatedBinary(int n) {\n        int modulo = 1000000007;\n        \n        long ans =0;\n
\tPLEASE UPVOTE IF YOU LIKE.\n```\nclass Solution {\n    public int concatenatedBinary(int n) {\n        int modulo = 1000000007;\n        \n        long ans =0;\n        for(int i=1; i<=n; i++){\n            ans = (((ans<<(1+(int)(Math.log(i) / Math.log(2))))%modulo)+i)%modulo;\n        }\n        return (int)ans;\n    }\n}\n```
['Java']