JLR Interview Question

Reverse an array and about sorting algorithms