Q3. Time Complexity doubt

I am not able to understand why the Time Complexity of this function is O(N^2)?

hello @kartik.k.saxena

pls share the question with me, i dont have access to ur quiz