Front Interview Question

How to flatten a nested (recursively nested) array.