Selection Sort -- ISSEUE IN SWAPPING

I understand how to find the minimum number in an array, but I’m confused about how the elements are swapped.

I’ve watched the lecture 2–3 times, but I still don’t understand where I’m getting stuck.