Question

4. Write a recursive function that accepts an array, and returns an array with the order reverses. [1, 2, 3, 4, 5, 6] should return [6, 5, 4, 3, 2,1].

Fig: 1