Question d’entretien chez Mobile Programming

Coding question to flatten array.