NVIDIA interview question

Time complexity of a previous hackerrank problem