Added some code but it is wrong

Check the comments for details on how to do (should work) tomorrow.
Basically I've been trying to return a function. I should return one int
at a time and store them in a new int array