Question d’entretien chez Miro

Algorithmic Problem with explanation of its complexity.