Pergunta de entrevista da empresa Logistic Infotech

Given one patter to check for loop logic