Caterpillar interview question

Merge sort coding Reverse an array