Confidential interview question

Explain the time complexity of your solution.