Question d’entretien chez Presidio

Time complexity of the given c++ code snippet