Sponsored
Use these hints if you're stuck. Try solving on your own first.
Can we check every possible pair?
Can we use a nested for loop to solve this problem?
Solve with full IDE support and test cases