Pergunta de entrevista da empresa Tech Prescient

Find the time complexity of given code snippet ?