Pregunta de entrevista de Flo Health

Flatten an array and discuss trade-offs between various implementations