Pregunta de entrevista de Brighter

find the big oh for the algorithm in #2