1. Start with the second element (index 1), which is 2. Compare it with the first element (index O), and since 2 is smaller, swap them: [2, 5, 4, 3, 1].
2. Move to the next element (index 2), which is 4.
Compare it with the elements to its left and
shift them if needed: [2, 4, 5, 3, 1].
3. Move to the next element (index 3), which is 3. Compare it with the elements to its left and shift them if needed: [2, 3, 4, 5, 1].
4. Move to the last element (index 4), which is 1. Compare it with the elements to its left and shift them if needed: [1, 2, 3, 4, 5].