5. Nearest Inversions

Find the nearest inversions.