Pregunta de entrevista de NeoSOFT

Asked the Time Complexity of the code which i wrote