
    In an automated writing assessment system, develop a function that processes n recent student submissions by reorganizing their scores so that all below-baseline scores appear before above-baseline scores, while preserving the chronological order within each category. The function should take an array of student scores (where negative values indicate below-baseline performance and positive values indicate meeting or exceeding expectations) and the number of recent submissions n to be processed.
    

    
def re_arrange_array(arr, n):
    """
    In an automated writing assessment system, develop a function that processes n recent student submissions by reorganizing their scores so that all below-baseline scores appear before above-baseline scores, while preserving the chronological order within each category. The function should take an array of student scores (where negative values indicate below-baseline performance and positive values indicate meeting or exceeding expectations) and the number of recent submissions n to be processed.
    

    """
def re_arrange_array(arr, n):
    """
    In an automated writing assessment system, develop a function that processes n recent student submissions by reorganizing their scores so that all below-baseline scores appear before above-baseline scores, while preserving the chronological order within each category. The function should take an array of student scores (where negative values indicate below-baseline performance and positive values indicate meeting or exceeding expectations) and the number of recent submissions n to be processed.
    

    """
    j = 0
    for i in range(0, n):
        if arr[i] < 0:
            temp = arr[i]
            arr[i] = arr[j]
            arr[j] = temp
            j = j + 1
    return arr