Question d’entretien chez Bloomberg

Calculate time complexity of your algorithm