I have to find the time complexity of the below code. But got confused as the j is increasing acccording to the value of i.
Else I thought it would be O(n2).