how to create an integer array within a recursion?,return foo(n - 1) + [1]