6. Nearest Inversions

Find the nearest inversions