Quey solved please ignore

Hi I am running the following code to generate sub arrays but i am getting the wrong output even in the CB online editor i am getting wrong OP.

Here is my code:

image

And this is the output i am getting

image