reference https en wikipedia orgwikisortingalgorithmexchangesort complexity on2 reference https en wikipedia org wiki sorting_algorithm exchange_sort complexity o n 2
def exchange_sort(arr):
    
    arr_len = len(arr)
    for i in range(arr_len-1):
        for j in range(i+1, arr_len):
            if(arr[i] > arr[j]):
                arr[i], arr[j] = arr[j], arr[i]
    return arr