class Solution:
    def concatenatedBinary(self, n: int) -> int:
        binString = ""
        for i in range(n + 1):
            binString = binString + "{0:b}".format(i)
        return int(binString, 2) % 1000000007

86b4616bd8ba70f65b542cf7c7101188a189c78f
<mask token>

class Solution:
    <mask token>

class Solution:

    def concatenatedBinary(self, n: int) ->int:
        binString = ''
        for i in range(n + 1):
            binString = binString + '{0:b}'.format(i)
        return int(binString, 2) % 1000000007

class Solution:
    def concatenatedBinary(self, n: int) -> int:
        binString = ""
        for i in range(n + 1):
            binString = binString + "{0:b}".format(i)
        return int(binString, 2) % 1000000007
