Google interview question

what is the time complexity of the algorithm