Flo Health interview question

Flatten an array and discuss trade-offs between various implementations