Pergunta de entrevista da empresa Boston Consulting Group

Asked about loop complexity of the implemented algorithm