Question d’entretien chez Google

Solve a question related to array