WebMD Health interview question

Insertion sort code and we have to explain