Infosys interview question

They asked about sorting based code