outer = [
  [8, [4]], 
  [[90, 91], -1, 3], 
  [9, 62], 
  [[-7, -1, [-56, [-6]]]], 
  [201], 
  [[76, 0], 18],
]

def ultimate_min(ls):
    total = 0
    temp = []
    # print(f"ls {ls}")
    for inner in ls:
        # print(f'inner {inner}')
        if type(inner) is list:
            # print(f'Deeper with {inner}')
            total += ultimate_min(inner)
            
        else:
            temp.append(inner)
            # print(f'temp {temp}') 
    if temp:
        print(f'adding temp min: {min(temp)} from temp {temp}')
        total += min(temp)
    return total

print(ultimate_min(outer))


