Pregunta de entrevista de Infosys

How does selection sorting work