Yelp interview question

How would you account for loops?