Infosys interview question

Implementing basic sorting algorithms