4. Nearest Inversions

Find the nearest inversions