def get1(nums):
    m = len(nums)
    for i in range(m):
        if i not in nums:
            return i


l1 = [3, 0, 1]
print(get1(l1))

03b411831dd18ff1939b7a7470514edf2f43ec66
<mask token>

def get1(nums):
    m = len(nums)
    for i in range(m):
        if i not in nums:
            return i


<mask token>

def get1(nums):
    m = len(nums)
    for i in range(m):
        if i not in nums:
            return i


<mask token>
print(get1(l1))

def get1(nums):
    m = len(nums)
    for i in range(m):
        if i not in nums:
            return i


l1 = [3, 0, 1]
print(get1(l1))
