JLR interview question

Reverse an array and about sorting algorithms