flattenArray exercise complete