Question d’entretien chez Confidential

Explain the time complexity of your solution.