Infosys interview question

Implement Selection sort and dry run it using an example