Paycom interview question

Coding question: Sorting an array