NVIDIA Interview Question

Time complexity of a previous hackerrank problem