Question d’entretien chez PayPal

given a nested array, write a function and turns it into a single array.