def transform_figlets(fig: str) -> list[list[int]]:
    """
    Converts a figlet string to an array, setting
    a '1' where there is a '#' symbol and 0
    otherwise
    """
    array: list[list[int]] = [[]]
    array_counter = 0
    for char in fig:
        if char == "\n":
            array.append([])
            array_counter += 1
        elif char == "#":
            array[array_counter].append(1)
        else:
            array[array_counter].append(0)

    return array