Amazon interview question

fixing a sorting array. an ascending