A function that takes an array as input and returns all consecutive sequences (subarrays) within it.
Subarray: A contiguous section or slice of elements within an array.
Array Indexing: The process of accessing individual elements within an array using their position or index.
Looping/Iteration: Repeating a set of instructions multiple times to perform operations on each element in an array.