Pregunta de entrevista de ENGIE

Flatten a deeply nested array with certain conditions on naming schema