Domanda di colloquio di Mapbox

Calculate the algorithmic complexity of the algorithm