const arr = [5, 1, 2, 9, 7, 4, 3];function insertionSort(arr) { const len = arr.length; for (let i = 1; i