Genea interview question

Flatten array implementation in JS