Pergunta de entrevista da empresa MediaLab

What is the O of the algorithm? How can we improve it?