Pregunta de entrevista de NVIDIA

Time complexity of a previous hackerrank problem