Sequoia Interview Question

Questions around event loop, flatten an array