Pergunta de entrevista da empresa Sequoia

Questions around event loop, flatten an array