Time Complexity For The Following Algorithm Stack Overflow

Time Complexity For The Following Algorithm Stack Overflow