Extreme Networks Interview Question

How would you detect and solve looping issues in both L2 and L3 levels?