Fondeadora Interview Question

return a flat array with custom function