Pergunta de entrevista da empresa Georgia Tech Research Institute

write code to detect a loop