Flatten

Write a function that takes a nested array and returns a flattened version with all elements at a single depth level. The flattening should be recursive, going as deep as the array structure goes.

Examples
Input: [[1,[2,[3]]]]
Output: [1,2,3]
Hints

Flatten

Implement a function that recursively flattens an array into a single level deep.