Pregunta de entrevista de Front

How to flatten a nested (recursively nested) array.