Microsoft interview question

Question about sorting an array