Pergunta de entrevista da empresa Susquehanna International Group

Time complexity of an example function