
    Design a function that reorganizes a student's learning priorities by taking their performance scores across different skills and the number of priority areas to focus on, arranging these selected skills so that all areas needing improvement (indicated by negative scores) are addressed before moving on to strength areas (indicated by positive scores), while maintaining the original sequence within each category. The function should maintain the relative ordering of skills within both the improvement areas and strength areas to preserve the logical progression of learning.
    

    
def re_arrange_array(arr, n):
    """
    Design a function that reorganizes a student's learning priorities by taking their performance scores across different skills and the number of priority areas to focus on, arranging these selected skills so that all areas needing improvement (indicated by negative scores) are addressed before moving on to strength areas (indicated by positive scores), while maintaining the original sequence within each category. The function should maintain the relative ordering of skills within both the improvement areas and strength areas to preserve the logical progression of learning.
    

    """
def re_arrange_array(arr, n):
    """
    Design a function that reorganizes a student's learning priorities by taking their performance scores across different skills and the number of priority areas to focus on, arranging these selected skills so that all areas needing improvement (indicated by negative scores) are addressed before moving on to strength areas (indicated by positive scores), while maintaining the original sequence within each category. The function should maintain the relative ordering of skills within both the improvement areas and strength areas to preserve the logical progression of learning.
    

    """
    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