Infosys Interview Question

How does selection sorting work