Pandora interview question

Asked a question about sorting an array.