Using Recursion to Iterate Arrays