Generating Subarrays

I am not understanding the execution of the code can you please help with this problem

You have to generate all the subarrays.
for every i,j i<=j , there exists a subarray and to print it ,you use a another loop from i to j .