Parsons Corporation Interview Question

What is the time complexity of this implementation? (Big O)