4. Sorting by Marriage