Pregunta de entrevista de Tech Prescient

Find the time complexity of given code snippet ?