IBM interview question

Hard array and sorting questions given a time limit