
    Given a sequence of bank transactions where '1' represents a flagged suspicious transaction and '0' represents a normal transaction, find the time window that shows the largest disparity between normal and suspicious transaction counts. Return this maximum difference between the count of normal transactions and suspicious transactions for any continuous period within the transaction history.
    

    
def find_length(string):
    """
    Given a sequence of bank transactions where '1' represents a flagged suspicious transaction and '0' represents a normal transaction, find the time window that shows the largest disparity between normal and suspicious transaction counts. Return this maximum difference between the count of normal transactions and suspicious transactions for any continuous period within the transaction history.
    

    """
def find_length(string):
    """
    Given a sequence of bank transactions where '1' represents a flagged suspicious transaction and '0' represents a normal transaction, find the time window that shows the largest disparity between normal and suspicious transaction counts. Return this maximum difference between the count of normal transactions and suspicious transactions for any continuous period within the transaction history.
    

    """
    n = len(string)
    current_sum = 0
    max_sum = 0
    for i in range(n):
        current_sum += 1 if string[i] == '0' else -1
        if current_sum < 0:
            current_sum = 0
        max_sum = max(current_sum, max_sum)
    return max_sum if max_sum else 0