How to Generate subarrays using recursion

[Question]: We haveGiven an array, generate all the possible subarrays of the given array using recursion for example :