Meta interview question

Flatten an array (got follow up questions)