Pregunta de entrevista de CliniComp

find time complexity for the given program.