Pregunta de entrevista de Mapbox

Calculate the algorithmic complexity of the algorithm