Pergunta de entrevista da empresa Yelp

How would you account for loops?