Meta Interview Question

Flatten an array (got follow up questions)