Pregunta de entrevista de Revature

questions on time complexity, oops