Pregunta de entrevista de Neural Concept

What is the time complexity of your proposed solution to the coding problem?