TO THE NEW Interview Question

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