how to find the complexity of this code fragment? first ,the loop will work in O(n) but the next fragment has a recursion ! enter image description here