WellDev interview question

Explain how insertion sort is works write codes for a given array