user
Given the following array: show all the possible subarrays

Additional Context:
[1, 2, 3, 4]

Answer:
assistant
Possible subarrays:
[1], [2], [3], [4], [1, 2], [2, 3], [3, 4], [1, 2, 3], [2, 3, 4], [1, 2, 3, 4]