TO THE NEW interview question

There are two elements present in array ,sort it within one loop.