Yelp Interview Question

How would you account for loops?