Insertion Sort

In this section, you will consider a different approach to sorting that doesn’t require us to iterate across the array multiple times (as selection and bubble sort do), but this benefit, of course, comes with its own additional costs…