Sponsored
Use these hints if you're stuck. Try solving on your own first.
Say there are N two-seat couches. For each couple, draw an edge from the couch of one partner to the couch of the other partner.
Solve with full IDE support and test cases