Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Save the top 3 largest values in each row.
Select any row, and select any of the three values stored in it.
Get the top 4 values from all of the other 3 largest values of the other rows, which do not share the same column as the selected value.
Brute force the selection of 2 positions from the top 4 now.