def insertion_sort(arr):
    for i in range(1, len(arr)):
        j = i
        while arr[j-1] > arr[j] and j > 0:
            arr[j - 1], arr[j] = arr[j], arr[j - 1]
            j -= 1


arr = [22, 20, 24, 21, 23, 25]
insertion_sort(arr)
print(arr)
