Domanda di colloquio di Tech Prescient

Find the time complexity of given code snippet ?