Challenge 2: Sort an Array

In this lesson, you are required to sort an array using recursion.

We'll cover the following

Problem Statement

Write a function SortArray that takes an integer array and returns the sorted array.

The following illustration explains the concept:

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.