Infosys interview question

Selection sort Database design