✅ One Line Solution
(Disclaimer: this is not an example to follow in a real project - it is written for fun and training mostly)Code #1.1 - One LineTime complexity: O(n). Space com
(Disclaimer: this is not an example to follow in a real project - it is written for fun and training mostly)

# Code #1.1 - One Line
Time complexity: $$O(n)$$. Space complexity: $$O(1)$$.
```python3
class Solution:
    def concatenatedBinary(self, n: int) -> int:
        return reduce(lambda q,k:(q<<k.bit_length()|k)%(10**9+7),range(n+1))
```

# Code #1.2 - Unwrapped
```python3
class Solution:
    def concatenatedBinary(self, n: int) -> int:
        MOD = 10**9 + 7
        q = 0
        for k in range(1, n+1):
            q = (q << k.bit_length() | k)%MOD
        
        return q
```

(Disclaimer 2: all code above is just a product of fantasy, it is not considered to be 'true' oneliners - please, remind about drawbacks only if you know how to make it better)
['Bit Manipulation', 'Simulation', 'Python', 'Python3']