PixelQue software interview question

sort an array without usinf pre defined funtion