Input: arr[] = {1, 4, 6}, L = 3, R = 8
Output: {1, 4}, {4}, {6}.
Explanation: All the possible subarrays are the following
{1] with sum 1.
{1, 4} with sum 5.
{1, 4, 6} with sum 11.
{4} with sum 4.
{4, 6} with sum 10.
{6} with sum 6.
Therefore, subarrays {1, 4}, {4}, {6} are having sum in range [3, 8].
Input: arr[] = {2, 3, 5, 8}, L = 4, R = 13
Output: {2, 3}, {2, 3, 5}, {3, 5}, {5}, {5, 8}, {8}.