Ramp Interview Question

The interviewer asked me what the time complexity was for a function I implemented